package com.pucong.gitee.database.backup.common.entity.service;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pucong.gitee.database.backup.common.selfenum.ServiceAgreeType;
import com.pucong.gitee.database.backup.common.selfenum.ServiceType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("AUTO_SERVICE_COMPUTER")
@ApiModel("服务器表")
public class ServiceComputer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "UUID",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @TableField("AGREE_TYPE")
    @ApiModelProperty("协议类型")
    private ServiceAgreeType agreeType;

    @TableField("SERVICE_TYPE")
    @ApiModelProperty("服务器类型")
    private ServiceType serviceType;

    @TableField("HOST")
    @ApiModelProperty("IP地址")
    private String host;

    @TableField("PORT")
    @ApiModelProperty("端口号")
    private int port;

    @TableField("USERNAME")
    @ApiModelProperty("用户名")
    private String username;

    @TableField("PASSWORD")
    @ApiModelProperty("密码")
    private String password;

    @TableField("CREATE_TIME")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField("CREATE_BY")
    @ApiModelProperty("创建人")
    private String createBy;
}
